module.exports = function (plop) {
  plop.setGenerator('view', {
    description: '简单的 view 文件',
    prompts: [{
      type: 'input',
      name: 'name',
      message: '请输入文件名'
    }],
    actions: [{
      type: 'add',
      path: 'src/views/business/{{name}}/index.vue',
      templateFile: 'templates/view.hbs'
    }]
  })
}
